/**
 * @Author: gan
 * @Description:
 * @File:  user
 * @Version: 1.0.0
 * @Date: 2022/4/8 4:49 下午
 */

package admin

import (
	v1 "gin-canteen-src/api/v1"
	"github.com/gin-gonic/gin"
)

type UserRouter struct{}

func (s *UserRouter) InitUserRouter(Router *gin.RouterGroup) {
	userRouter := Router.Group("user")
	userApi := v1.ApiGroupApp.AdminGroup.UserApi
	{
		userRouter.POST("login", userApi.Login)      // 登录
		userRouter.POST("create", userApi.Create)    // 创建
		userRouter.POST("list", userApi.GetUserList) // 列表
	}
}
